namespace NavigateExample.Services.Dialog;

/// <summary>
/// 对话框结果实现类
/// </summary>
public class DialogResult : IDialogResult
{
    public ButtonResult Result { get; }
    public DialogParameters Parameters { get; }

    public DialogResult(ButtonResult result)
    {
        Result = result;
        Parameters = new DialogParameters();
    }

    public DialogResult(ButtonResult result, DialogParameters parameters)
    {
        Result = result;
        Parameters = parameters ?? new DialogParameters();
    }
}